home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / INPUT / INT_HOLD.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.2 KB  |  38 lines

  1.  
  2. package sub_arctic.input;
  3.  
  4. /** 
  5.  * Simple object to encapsulate an integer. This class is used simulate 
  6.  * full pass-by-reference when needed (i.e., to allow integer parameters 
  7.  * to be modified and returned by a method).
  8.  *
  9.  * @author Scott Hudson
  10.  */
  11. public class int_holder
  12.   {
  13.     /** The value we encapsulate. */
  14.     public int value = 0;
  15.  
  16.     /** Constructor with explicit initialization. */
  17.     public int_holder(int v) { value = v; }
  18.  
  19.     /** Constructor that initializes to 0. */
  20.     public int_holder() { value = 0; }
  21.   }
  22. /*=========================== COPYRIGHT NOTICE ===========================
  23.  
  24. This file is part of the subArctic user interface toolkit.
  25.  
  26. Copyright (c) 1996 Scott Hudson and Ian Smith
  27. All rights reserved.
  28.  
  29. The subArctic system is freely available for most uses under the terms
  30. and conditions described in 
  31.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  32. and appearing in full in the lib/interactor.java source file.
  33.  
  34. The current release and additional information about this software can be 
  35. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  36.  
  37. ========================================================================*/
  38.